import Vue from 'vue';
import 'lib-flexible';
import VueQrcode from '@xkeshi/vue-qrcode';
import Web3 from 'web3';
import { Decimal as BigJs } from 'decimal.js';
import 'element-ui/lib/theme-chalk/index.css';
import mixin from '@/plugins/mixin';
import moment from 'moment-timezone';
import router from './router';
import store from './store';
import App from './App.vue';
import i18n from './i18n-setup';
import './plugins/elementui';
import './style/index.scss';
import './plugins/vue-clipboard2';
import filters from './plugins/filters';

const web3 = new Web3(Web3.givenProvider || 'wss://remotenode.com:8546');
window.web3 = web3;
window.moment = moment;
window.$big = BigJs;

Vue.mixin(mixin);
Vue.use(filters);
Vue.use(store);

Vue.component(VueQrcode.name, VueQrcode);

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  i18n,
  render: h => h(App),
}).$mount('#app');
